{if $tabbed == "false"}
<h1>{t 1=$group->getLabel()}%s group edition{/t}</h1>
<div id="moduleTabs">
   <ul>
      <li><a href="{$URL_RELATIVE}/bo/#{$group->getEditUrl($group->getLang(),'users')}" title="Utilisateurs" rel="history"><span>{t}Users{/t}</span></a></li>
   	  {hasRight rule=rights_Show}
      <li><a href="{$URL_RELATIVE}/bo/#{$group->getEditUrl($group->getLang(),'roles')}" title="{t}Roles{/t}" rel="history"><span>{t}Roles{/t}</span></a></li>
   	  <li><a href="{$URL_RELATIVE}/bo/#{$group->getEditUrl($group->getLang(),'rights')}" title="{t}Rights{/t}" rel="history"><span>{t}Rights{/t}</span></a></li>
      {/hasRight}
   	  {hasRight rule=users_Edit}
   	  <li><a href="{$URL_RELATIVE}/bo/#{$group->getEditUrl($group->getLang(),'properties')}" title="Propriétés" rel="history"><span>{t}Properties{/t}</span></a></li>
   	  {/hasRight}
   </ul>
</div>
<div id="ajaxTabLoader"><div id="loaderTabPic">{backend_image file="ajax-loader-big.gif"}</div></div>
<div id="tabContent">
{/if}
	{if $tabName=="users"}
		{block module="users" action="listUsers" docId=$group->getUniqueId() docLang=$group->getLang() showTitle=true}
	{elseif $tabName=="roles"}
    
	{hasRight rule=rights_Show}
		{block module="rights" action="listRoles" docId=$group->getUniqueId() docLang=$group->getLang()}
	{/hasRight}

    {elseif $tabName=="rights"}

    {hasRight rule=rights_Show}
        {block module="rights" action="listRights" docId=$group->getUniqueId() docLang=$group->getLang()}
    {/hasRight}

	{else}
	{hasRight rule=users_Edit}
	<div id="formStatus">{$errors.status}</div>
	<form name="FormGroups" method="post" action="?module=users&action=block_GroupsEdit&docId={$group->getUniqueId()}&docLang={$group->getLang()}" id="ajaxForm">
		<div class="submitButton"><button type="reset" class="greyButton" >{t}Cancel{/t}</button> <button type="submit" name="form[submit]" class="greenButton" >{t}Save{/t}</button></div>
		<table class="listTable"
     		<tr>
   				<td><label>{t}Label{/t}</label></td>
   				<td><input type="text" name="FormGroups[label]" value="{$group->getLabel()}" style="width:300px;" /></td>
   				{if isset($errors.label) && count($errors.label) > 0}<td>{foreach from=$errors.label item=error}<div class="error">{$error}</div>{/foreach}</td>{/if}
			</tr>
			<tr><td>{t}Creation date{/t}</td><td>{date date=$group->getCreationDate()}</td></tr>
			<tr><td>{t}Key{/t}</td><td>{$group->getUniqueId()}</td></tr>
			<tr><td>{t}Language{/t}</td><td>{$group->getLang()}</td></tr>
		</table>
	</form>
	{/hasRight}
	{/if}
</div>